package com.sdy.hospitalguard.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 探视人员黑名单:blacklist
 * </p>
 *
 * @author zzq
 * @since 2020-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Blacklist extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 黑名单ID
     */
    @TableId
    private Integer id;

    /**
     * 探视人员id
     */
    private Integer userId;

    /**
     * 封禁时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date bannedTime;

    /**
     * 解封时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date outBannedTime;

    /**
     * 封禁理由
     */
    private String reason;

    /**
     * 状态  0:有效 1:无效
     */
    private Integer state;

}
